<?php

namespace app\api\model\intelligentlive;

use app\api\model\BaseModel;

class Orders extends BaseModel
{
    protected $table = 'intelligentlive_orders';
    protected $deleteTime = 'delete_time';
    protected $autoWriteTimestamp = 'datetime';

    public function orderAccount()
    {
        return $this->belongsTo(Account::class,"user_name","name")->field('app_id,name,director');
    }
}
